package lab01;

/**
 * Created by 林云志 on 2017/10/14.
 */
public class Test13 {
    public static void main(String[] args) {
        int x;
        for (x = 100; x <= 1000 ; x++){
            int unit = x % 10;
            int decade = x/10%10;
            int hundreds = x/100%10;
            if (x == unit*unit*unit+decade*decade*decade+hundreds*hundreds*hundreds){

                System.out.println(x+"是水仙花数");
            }
        }

    }
}
